<?php
include("inc/global.inc");

if($_POST[jifen]){
   $j_url=$_SERVER['HTTP_REFERER'];
   $j_rs=@mysql_query("select * from member where id='".$_COOKIE['user_id']."'");
   $j_row=@mysql_fetch_array($j_rs);
   
   $j_rs2=@mysql_query("select * from jifen where member_id='".$_COOKIE['user_id']."' and j_type='1' and j_url='$j_url'");
   $j_row2=@mysql_fetch_array($j_rs2);
   if($j_row2[id]){
      $sys=1;
   }else{
      if($j_row[m_jifen]<5){
         echo "<script>alert('您的三帝币余额不足，请充值');location='$j_url'</script>";
      }else{
	     $j_number=$j_row[m_jifen]-5;
		 @mysql_query("update member set m_jifen='$j_number' where id='".$_COOKIE['user_id']."'");
		 @mysql_query("insert into jifen (member_id,j_type,j_num,j_name,add_time,j_url) values ($_COOKIE[user_id],'1','5','查看三帝招标网信息','".date("Y-m-d H:i:s")."','$j_url')");
         $sys=1;
      }
   }
}


$z_rs=@mysql_query("select news.id,news.type_id2,news.type_name2,news.pro_name,news.type_name,news.type_name2,news.news_title,news.news_content,news.news_time,news_type.t_name from news inner join news_type on (news.type_id2=news_type.id) where news.id='".$_GET['id']."' and n_sh=1");
$z_row=@mysql_fetch_array($z_rs);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$z_row[news_title]?>-<?=$z_row[type_name2]?>招标-三帝招标网为您提供最新的招标信息</title>
<meta name="description" content="<?=$z_row[news_title]?>,<?=$z_row[type_name2]?>招标,三帝招标网是一个专业招标网站，提供最新、权威、准确、及时的项目招标，是您值得信赖的项目招标网站，三帝招标网实时更新国内公共建设项目招标公告,招标预告,企事业单位采购信息。" />
<meta name="keywords" content="<?=$z_row[news_title]?>,<?=$z_row[type_name2]?>招标,三帝招标网" />
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/head.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
<link href="/css/content.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("inc/head_top.php")?>
<div class="onl"></div>
<div id="mian" class="topside6 side">
<div class="title1">您当位置:  <a href="http://zb.sandib2b.cn">三帝招标网</a> >> <a href="/zb/<?=$z_row[t_name]?>-<?=$z_row[type_id2]?>/1.html"><?=$z_row[type_name2]?></a> >> <?=$z_row[news_title]?></div>
<div class="onl"></div>
</div>

<div class="w960 topside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<div id="mian" class="topside6">
<div class="rightbox downside6">
  <div class="rightbox downside6">
  <div class="rightmain">
    <div class="title size14 b">最新招标项目</div>
    <div class="RtInfo4">
      <div class="div_3">
        <ul>
<?php
$rs=@mysql_query("select id,news_title,news_time from news where type_id=1 and n_sh=1 order by news_time desc, id desc limit 10");
while($row=@mysql_fetch_array($rs)){
?>
<li><a href="/zhaobiao/<?=$row['id']?>.html" target="_blank"  class="link_1"><?=mb_substr($row[news_title],0,13,'utf-8')?></a>&nbsp;<?=date("Y-m-d",strtotime($row[news_time]))?></li><?php }?>
                  </ul>
      </div>
    </div>
    <div class="onl"></div>
  </div>
  </div>
  
  <div class="rightmain topside6">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 250x250, 创建于 11-3-28 */
google_ad_slot = "2236364990";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>


<div class="rightmain topside20">
<script type="text/javascript">/*250*250，创建于2011-3-25*/ var cpro_id = 'u422549';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script></div>
  
  
  </div>
<div class="leftmain content sideyellow1 size14" style="word-wrap:break-word;">
  <div class="biaoti">
<div class="title3"><?=$z_row[news_title]?></div>
<div>
<div class="adimg" style="width:250px;"><script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 250x250, 创建于 11-3-28 */
google_ad_slot = "3845659152";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<span class="td"><strong>发布时间</strong>：<?=date("Y-m-d",strtotime($z_row[news_time]))?></span>
<span class="td"><strong>所 在 地</strong>：<?=$z_row[pro_name]?></span>
<span class="td"><strong>行　　业</strong>：<?=$z_row[type_name2]?></span>
<span class="td"><strong>内　　容</strong>：
<?=$z_row[news_content]?>
<hr size=1 color="#E8E8E8"/>

<div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 468x60, 创建于 11-3-28 */
google_ad_slot = "8208017723";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>

<span class="td">
<?php if($_COOKIE[user_id]){
      $mrs=mysql_query("select * from member where id='".$_COOKIE['user_id']."'");
	  $mrow=mysql_fetch_array($mrs);
?>
<table width="100%" height="52" border="0" align="center" cellpadding="0" cellspacing="5" bgcolor="#FAFAFA">
     <tr>
       <td width="138" align="right" bgcolor="#FFFFFF">用户名：</td>
       <td width="547" bgcolor="#FFFFFF"><?=$mrow[m_user]?>&nbsp;&nbsp;[<a href="/exit.php">退出</a>]</td>
     </tr>
     <tr>
       <td align="right" bgcolor="#FFFFFF">会员等级：</td>
       <td bgcolor="#FFFFFF"><?php if($mrow[m_type]==3){?>普通会员，<a href="http://www.sandib2b.cn/member/sj.php" target="_blank">升级钻石会员</a><?php }else{?><img src="http://www.sandib2b.cn/images/member.gif" border="0" align="absmiddle" />，到期时间：<?=date("Y-m-d",strtotime($mrow[m_endtime]))?>，<a href="http://www.sandib2b.cn/member/sf.php" target="_blank">续费</a><?php }?></td>
     </tr>
     <tr>
       <td align="right" bgcolor="#FFFFFF">三帝币：</td>
       <td bgcolor="#FFFFFF"><?=$mrow[m_jifen]?>，<a href="http://www.sandib2b.cn/member/pay.php" target="_blank">充值</a></td>
     </tr>
 </table>
 <?php }else{?>
   <table width="660" height="52" border="0" align="center" cellpadding="0" cellspacing="5">
   <form id="form1" name="form1" method="post" action="/login.php" onsubmit="return checklogin()">
     <tr>
       <td width="333"><table width="300" border="0" cellpadding="5" cellspacing="0" class="side">
         <tr>
           <td height="32" colspan="2"><label><img src="/images/logoicon.gif" alt="三帝贸易网会员登录" width="122" height="32" /></label></td>
         </tr>
         <tr>
           <td width="28%" align="right">用户名：</td>
           <td width="72%"><input name="logUserName" type="text" id="logUserName" size="20" maxlength="40"/></td>
         </tr>
         <tr>
           <td align="right">密　码： </td>
           <td><input name="logPassword" type="password" id="logPassword" size="20" maxlength="40" /></td>
         </tr>
         <tr>
           <td align="right">验证码：</td>
           <td><input name="c_code" id="c_code" type="text" class="input2" size="6" maxlength="6" />
           &nbsp;&nbsp;<img src="../../inc/chk_num.php" name="img" width="80" height="25" align="absmiddle" id="img"/>&nbsp;<a href="#" name="test" id="test">刷新</a></td>
         </tr>
         <tr>
           <td>&nbsp;</td>
           <td><a href="#">密码找回？</a></td>
         </tr>
         <tr>
           <td colspan="2"><div class="reg">
             <input name="image" type="image" src="/images/login.gif" />
             &nbsp;<a href="http://www.sandib2b.cn/join"><img src="/images/reg.gif" width="89" height="31" border="0" /></a></div></td>
         </tr>
       </table>         <label></label></td>
       <td width="333">
	   <table width="320" border="0" cellpadding="5" cellspacing="0" class="side">
         <tr>
           <td height="32"><label><img src="/images/regicon.gif" alt="三帝贸易网会员登录" width="122" height="32" /></label></td>
         </tr>
         <tr>
           <td height="204" align="center"><img src="/images/regitem.jpg" width="272" height="176" /></td>
           </tr>
         
       </table></td>
       </tr></form>
   </table>
   <script>
function $(id){
   return document.getElementById(id);
}
function checklogin(){
   if($("logUserName").value==""){
   alert("用户名不能为空");
   $("logUserName").focus();
   return false;
   }
   if($("logPassword").value==""){
   alert("密码不能为空");
   $("logPassword").focus();
   return false;
   }
   if($("c_code").value==""){
   alert("验证码不能为空");
   $("c_code").focus();
   return false;
   }
}
function test(img){
    var src=img.getAttribute("src");
    src=src+"?new="+Math.random(0,10);
    img.setAttribute("src",src);
}
function prepare(){
    var nav=document.getElementById("test");
    var name=nav.getAttribute("name");
    var str="test";
    if(name==str){
        nav.onclick=function(){
            var img=document.getElementById("img");
            test(img);
            return false;
        }
    }
}
window.onload=prepare;
</script>

<?php }?>
 </span></div>
  </div>
  </div>
<div class="onl"></div>
</div>

<div class="w960 topside20 downside20 side">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>

<div id="foot">
  <div class="Copyright">
<ul>
<li><a href="http://www.sandib2b.cn/about/">关于我们</a> | <a href="http://www.sandib2b.cn/about/contact.php">联系我们</a> | <a href="http://www.sandib2b.cn/about/help4.php">广告服务</a> | <a href="http://www.sandib2b.cn/about/help.php">帮助中心</a> | <a href="http://www.sandib2b.cn/about/link.php">友情链接</a> | <a href="http://www.sandib2b.cn/about/policy.php">隐私策略</a> | <a href="http://www.sandib2b.cn/about/terms.php">用户协议</a> | <a href="http://www.sandib2b.cn/about/declaration.php">法律声明</a> | <a href="http://www.sandib2b.cn/about/fay.php">付款方式</a></li>
<li>客服专席QQ：<img src="http://www.sandib2b.cn/images/pa.gif" width="25" height="17" align="absmiddle" />935191198、<img src="http://www.sandib2b.cn/images/pa.gif" width="25" height="17" align="absmiddle" />582812557</li>
<li>Copyright 2007-2012 © sandib2b.cn 三帝贸易网保留有限权利 All rights reserved.</li>
<li>访问和使用三帝贸易网，即表明您已完全接受和服从我们的<a href="http://www.sandib2b.cn/about/terms.php">用户协议</a></li>
<li>国家信息产业部ICP备案：皖ICP备08002586号&nbsp;&nbsp;
      <script src='http://w.cnzz.com/c.php?id=30036614' language='JavaScript' charset='gb2312'></script>

</li>
</ul>
</div>
</div>

</BODY>
</HTML>

<script type="text/javascript">/*120*270，创建于2011-3-23*/ var cpro_id = 'u419785';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>
